package br.com.laeventos.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
    private static final String url = "jdbc:postgresql://localhost:5432/LAEventos";
    private static final String usuario = "postgres";
    private static final String senha = "12345";
    
    public static Connection getConnection() throws SQLException, ClassNotFoundException {
    	Class.forName("org.postgresql.Driver");
    	return DriverManager.getConnection(url, usuario, senha);
    }
}
